#pragma once
#include "ydbcmd.h"
class YGoodsTypeTab;

class YGoodsTypeTableCmd :
	public YDbCmd
{
public:
	YGoodsTypeTableCmd(void);
public:
	~YGoodsTypeTableCmd(void);

	BOOL Add(YGoodsTypeTab* pYGoodsTypeTab);
	BOOL DelByID(int nID);
	BOOL EditByID(YGoodsTypeTab* pYGoodsTypeTab);
	void GetByID(YGoodsTypeTab* pYGoodsTypeTab);
	void GetByParentID(int nParentID,CTypedPtrList<CPtrList, YGoodsTypeTab *>*pRecList);
	void Get(CTypedPtrList<CPtrList, YGoodsTypeTab *>*pRecList);
	int SameNameRecordCount(TCHAR* pName,int nID, int nParentID);
	int SameNameRecordCount(TCHAR* pName, int nParentID);
};